<?php

namespace app\common\enums;

class ResourcesTypeEnum extends BaseEnum
{
    // 定义常量
    public const E1 = '1';
    public const E2 = '2';
    public const E3 = '3';
    public const E4 = '4';

    // 定义描述
    public array $description = [
        self::E1 => '音素',
        self::E2 => '音素视频',
        self::E3 => '音节',
        self::E4 => '例句'
    ];


    public function isRealtimeGet($resourcesType)
    {
        return $resourcesType != self::E2;
    }
}
